#include "StdAfx.h"
#include "BMPHeader.h"

BMPHeader::BMPHeader(int width, int height)
: bfType(19778)
, bfSize(sizeof(BMPHeader) + width * height * 3)
, bfReserved1(0)
, bfReserved2(0)
, bfOffBits(54)
, biSize(40)
, biWidth(width)
, biHeight(height)
, biPlanes(1)
, biBitCount(24)
, biCompression(0)
, biSizeImage(width * height * 3)
, biXPelsPerMeter(0)
, biYPelsPerMeter(0)
, biClrUsed(0)
, biClrImportant(0) {

}
